import React from 'react'
import ReactDom from 'react-dom'
import App from './App'

import  store from './redux/store'
import {Provider} from 'react-redux'

ReactDom.render(
<Provider store={store}>
    <App />
</Provider>
, document.getElementById('root'))

// 用上了react-redux 就不用自己监测
// store.subscribe(()=>{
//     ReactDom.render(<App/>, document.getElementById('root'))
// })